package com.lzy.webapi.response;

import java.math.BigDecimal;
import java.util.List;

public class AgentOrderResponse {
    /**
     * 订单号
     */
    private Long orderId;

    /**
     * 下单人手机
     */
    private String phone;

    /**
     * 协议名称
     */
    private String protocolName;

    /**
     * 订单状态
     */
    private Integer status;

    /**
     * 下单时间
     */
    private String createTime;

    /**
     * 订单金额
     */
    private BigDecimal moneyCount;

    /**
     * 协议价格
     */
    private BigDecimal protocolPrice;

    /**
     * 下单人姓名
     */
    private String name;

    /**
     * 身份证号
     */
    private String idCard;

    private AgentProtocolCommissionMini agentProtocolCommission;

    private List<AgentOrderProjectRecordMini> agentOrderProjectRecord;

    public List<AgentOrderProjectRecordMini> getAgentOrderProjectRecord() {
        return agentOrderProjectRecord;
    }

    public void setAgentOrderProjectRecord(List<AgentOrderProjectRecordMini> agentOrderProjectRecord) {
        this.agentOrderProjectRecord = agentOrderProjectRecord;
    }

    public AgentProtocolCommissionMini getAgentProtocolCommission() {
        return agentProtocolCommission;
    }

    public void setAgentProtocolCommission(AgentProtocolCommissionMini agentProtocolCommission) {
        this.agentProtocolCommission = agentProtocolCommission;
    }

    public String getIdCard() {
        return idCard;
    }

    public void setIdCard(String idCard) {
        this.idCard = idCard;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public class AgentOrderProjectRecordMini {
        /**
         * 名称
         */
        private String name;
        /**
         * 数量
         */
        private Integer count;

        /**
         * 单位
         */
        private String unit;

        /**
         * 类型 1-龙珠 2-股权 3-房车券 4-汽摩券 5-代金券
         */
        private Integer projectType;

        public Integer getProjectType() {
            return projectType;
        }

        public void setProjectType(Integer projectType) {
            this.projectType = projectType;
        }

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public Integer getCount() {
            return count;
        }

        public void setCount(Integer count) {
            this.count = count;
        }

        public String getUnit() {
            return unit;
        }

        public void setUnit(String unit) {
            this.unit = unit;
        }
    }

    public class AgentProtocolCommissionMini {
        /**
         * 首次分佣
         */
        private String first;
        /**
         * 销售分佣
         */
        private String sales;

        public String getFirst() {
            return first;
        }

        public void setFirst(String first) {
            this.first = first;
        }

        public String getSales() {
            return sales;
        }

        public void setSales(String sales) {
            this.sales = sales;
        }
    }


    private AgentOrderYieldRatioDtoMini agentOrderYieldRatioDto;

    public AgentOrderYieldRatioDtoMini getAgentOrderYieldRatioDto() {
        return agentOrderYieldRatioDto;
    }

    public void setAgentOrderYieldRatioDto(AgentOrderYieldRatioDtoMini agentOrderYieldRatioDto) {
        this.agentOrderYieldRatioDto = agentOrderYieldRatioDto;
    }

    private List<ProjectDtoMini> projectDto;

    public List<ProjectDtoMini> getProjectDto() {
        return projectDto;
    }

    public void setProjectDto(List<ProjectDtoMini> projectDto) {
        this.projectDto = projectDto;
    }

    public class AgentOrderYieldRatioDtoMini {
        /**
         * 协议返现比率
         */
        private BigDecimal cashbackRatio;

        /**
         * 协议返现时间
         */
        private Integer cashbackTime;

        /**
         * 订单金额
         */
        private BigDecimal price;

        /**
         * 日收益
         */
        private BigDecimal dailyIncome;

        /**
         * 限制提现期限
         */
        private Integer limitTime;

        public BigDecimal getPrice() {
            return price;
        }

        public void setPrice(BigDecimal price) {
            this.price = price;
        }

        public BigDecimal getDailyIncome() {
            return dailyIncome;
        }

        public void setDailyIncome(BigDecimal dailyIncome) {
            this.dailyIncome = dailyIncome;
        }

        public Integer getLimitTime() {
            return limitTime;
        }

        public void setLimitTime(Integer limitTime) {
            this.limitTime = limitTime;
        }

        public BigDecimal getCashbackRatio() {
            return cashbackRatio;
        }

        public void setCashbackRatio(BigDecimal cashbackRatio) {
            this.cashbackRatio = cashbackRatio;
        }

        public Integer getCashbackTime() {
            return cashbackTime;
        }

        public void setCashbackTime(Integer cashbackTime) {
            this.cashbackTime = cashbackTime;
        }
    }

    public class ProjectDtoMini {
        /**
         * 包含数量
         */
        private Integer containNum;

        /**
         * 汽摩券名称
         */
        private String motorName;

        public Integer getContainNum() {
            return containNum;
        }

        public void setContainNum(Integer containNum) {
            this.containNum = containNum;
        }

        public String getMotorName() {
            return motorName;
        }

        public void setMotorName(String motorName) {
            this.motorName = motorName;
        }
    }


    public Long getOrderId() {
        return orderId;
    }

    public void setOrderId(Long orderId) {
        this.orderId = orderId;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getProtocolName() {
        return protocolName;
    }

    public void setProtocolName(String protocolName) {
        this.protocolName = protocolName;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        String crt = createTime;
        if (null != createTime && !createTime.equals("") && createTime.endsWith(".0")) {
            crt = createTime.substring(0, createTime.lastIndexOf("."));
        }
        this.createTime = crt;
    }

    public BigDecimal getMoneyCount() {
        return moneyCount;
    }

    public void setMoneyCount(BigDecimal moneyCount) {
        this.moneyCount = moneyCount;
    }

    public BigDecimal getProtocolPrice() {
        return protocolPrice;
    }

    public void setProtocolPrice(BigDecimal protocolPrice) {
        this.protocolPrice = protocolPrice;
    }
}
